package com.fairyzww.cloud.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ThumbExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ThumbExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andThumbIdIsNull() {
            addCriterion("thumb_id is null");
            return (Criteria) this;
        }

        public Criteria andThumbIdIsNotNull() {
            addCriterion("thumb_id is not null");
            return (Criteria) this;
        }

        public Criteria andThumbIdEqualTo(Integer value) {
            addCriterion("thumb_id =", value, "thumbId");
            return (Criteria) this;
        }

        public Criteria andThumbIdNotEqualTo(Integer value) {
            addCriterion("thumb_id <>", value, "thumbId");
            return (Criteria) this;
        }

        public Criteria andThumbIdGreaterThan(Integer value) {
            addCriterion("thumb_id >", value, "thumbId");
            return (Criteria) this;
        }

        public Criteria andThumbIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("thumb_id >=", value, "thumbId");
            return (Criteria) this;
        }

        public Criteria andThumbIdLessThan(Integer value) {
            addCriterion("thumb_id <", value, "thumbId");
            return (Criteria) this;
        }

        public Criteria andThumbIdLessThanOrEqualTo(Integer value) {
            addCriterion("thumb_id <=", value, "thumbId");
            return (Criteria) this;
        }

        public Criteria andThumbIdIn(List<Integer> values) {
            addCriterion("thumb_id in", values, "thumbId");
            return (Criteria) this;
        }

        public Criteria andThumbIdNotIn(List<Integer> values) {
            addCriterion("thumb_id not in", values, "thumbId");
            return (Criteria) this;
        }

        public Criteria andThumbIdBetween(Integer value1, Integer value2) {
            addCriterion("thumb_id between", value1, value2, "thumbId");
            return (Criteria) this;
        }

        public Criteria andThumbIdNotBetween(Integer value1, Integer value2) {
            addCriterion("thumb_id not between", value1, value2, "thumbId");
            return (Criteria) this;
        }

        public Criteria andFileIdIsNull() {
            addCriterion("file_id is null");
            return (Criteria) this;
        }

        public Criteria andFileIdIsNotNull() {
            addCriterion("file_id is not null");
            return (Criteria) this;
        }

        public Criteria andFileIdEqualTo(Integer value) {
            addCriterion("file_id =", value, "fileId");
            return (Criteria) this;
        }

        public Criteria andFileIdNotEqualTo(Integer value) {
            addCriterion("file_id <>", value, "fileId");
            return (Criteria) this;
        }

        public Criteria andFileIdGreaterThan(Integer value) {
            addCriterion("file_id >", value, "fileId");
            return (Criteria) this;
        }

        public Criteria andFileIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("file_id >=", value, "fileId");
            return (Criteria) this;
        }

        public Criteria andFileIdLessThan(Integer value) {
            addCriterion("file_id <", value, "fileId");
            return (Criteria) this;
        }

        public Criteria andFileIdLessThanOrEqualTo(Integer value) {
            addCriterion("file_id <=", value, "fileId");
            return (Criteria) this;
        }

        public Criteria andFileIdIn(List<Integer> values) {
            addCriterion("file_id in", values, "fileId");
            return (Criteria) this;
        }

        public Criteria andFileIdNotIn(List<Integer> values) {
            addCriterion("file_id not in", values, "fileId");
            return (Criteria) this;
        }

        public Criteria andFileIdBetween(Integer value1, Integer value2) {
            addCriterion("file_id between", value1, value2, "fileId");
            return (Criteria) this;
        }

        public Criteria andFileIdNotBetween(Integer value1, Integer value2) {
            addCriterion("file_id not between", value1, value2, "fileId");
            return (Criteria) this;
        }

        public Criteria andThumbNameIsNull() {
            addCriterion("thumb_name is null");
            return (Criteria) this;
        }

        public Criteria andThumbNameIsNotNull() {
            addCriterion("thumb_name is not null");
            return (Criteria) this;
        }

        public Criteria andThumbNameEqualTo(String value) {
            addCriterion("thumb_name =", value, "thumbName");
            return (Criteria) this;
        }

        public Criteria andThumbNameNotEqualTo(String value) {
            addCriterion("thumb_name <>", value, "thumbName");
            return (Criteria) this;
        }

        public Criteria andThumbNameGreaterThan(String value) {
            addCriterion("thumb_name >", value, "thumbName");
            return (Criteria) this;
        }

        public Criteria andThumbNameGreaterThanOrEqualTo(String value) {
            addCriterion("thumb_name >=", value, "thumbName");
            return (Criteria) this;
        }

        public Criteria andThumbNameLessThan(String value) {
            addCriterion("thumb_name <", value, "thumbName");
            return (Criteria) this;
        }

        public Criteria andThumbNameLessThanOrEqualTo(String value) {
            addCriterion("thumb_name <=", value, "thumbName");
            return (Criteria) this;
        }

        public Criteria andThumbNameLike(String value) {
            addCriterion("thumb_name like", value, "thumbName");
            return (Criteria) this;
        }

        public Criteria andThumbNameNotLike(String value) {
            addCriterion("thumb_name not like", value, "thumbName");
            return (Criteria) this;
        }

        public Criteria andThumbNameIn(List<String> values) {
            addCriterion("thumb_name in", values, "thumbName");
            return (Criteria) this;
        }

        public Criteria andThumbNameNotIn(List<String> values) {
            addCriterion("thumb_name not in", values, "thumbName");
            return (Criteria) this;
        }

        public Criteria andThumbNameBetween(String value1, String value2) {
            addCriterion("thumb_name between", value1, value2, "thumbName");
            return (Criteria) this;
        }

        public Criteria andThumbNameNotBetween(String value1, String value2) {
            addCriterion("thumb_name not between", value1, value2, "thumbName");
            return (Criteria) this;
        }

        public Criteria andThumbWidthIsNull() {
            addCriterion("thumb_width is null");
            return (Criteria) this;
        }

        public Criteria andThumbWidthIsNotNull() {
            addCriterion("thumb_width is not null");
            return (Criteria) this;
        }

        public Criteria andThumbWidthEqualTo(Integer value) {
            addCriterion("thumb_width =", value, "thumbWidth");
            return (Criteria) this;
        }

        public Criteria andThumbWidthNotEqualTo(Integer value) {
            addCriterion("thumb_width <>", value, "thumbWidth");
            return (Criteria) this;
        }

        public Criteria andThumbWidthGreaterThan(Integer value) {
            addCriterion("thumb_width >", value, "thumbWidth");
            return (Criteria) this;
        }

        public Criteria andThumbWidthGreaterThanOrEqualTo(Integer value) {
            addCriterion("thumb_width >=", value, "thumbWidth");
            return (Criteria) this;
        }

        public Criteria andThumbWidthLessThan(Integer value) {
            addCriterion("thumb_width <", value, "thumbWidth");
            return (Criteria) this;
        }

        public Criteria andThumbWidthLessThanOrEqualTo(Integer value) {
            addCriterion("thumb_width <=", value, "thumbWidth");
            return (Criteria) this;
        }

        public Criteria andThumbWidthIn(List<Integer> values) {
            addCriterion("thumb_width in", values, "thumbWidth");
            return (Criteria) this;
        }

        public Criteria andThumbWidthNotIn(List<Integer> values) {
            addCriterion("thumb_width not in", values, "thumbWidth");
            return (Criteria) this;
        }

        public Criteria andThumbWidthBetween(Integer value1, Integer value2) {
            addCriterion("thumb_width between", value1, value2, "thumbWidth");
            return (Criteria) this;
        }

        public Criteria andThumbWidthNotBetween(Integer value1, Integer value2) {
            addCriterion("thumb_width not between", value1, value2, "thumbWidth");
            return (Criteria) this;
        }

        public Criteria andThumbHeightIsNull() {
            addCriterion("thumb_height is null");
            return (Criteria) this;
        }

        public Criteria andThumbHeightIsNotNull() {
            addCriterion("thumb_height is not null");
            return (Criteria) this;
        }

        public Criteria andThumbHeightEqualTo(Integer value) {
            addCriterion("thumb_height =", value, "thumbHeight");
            return (Criteria) this;
        }

        public Criteria andThumbHeightNotEqualTo(Integer value) {
            addCriterion("thumb_height <>", value, "thumbHeight");
            return (Criteria) this;
        }

        public Criteria andThumbHeightGreaterThan(Integer value) {
            addCriterion("thumb_height >", value, "thumbHeight");
            return (Criteria) this;
        }

        public Criteria andThumbHeightGreaterThanOrEqualTo(Integer value) {
            addCriterion("thumb_height >=", value, "thumbHeight");
            return (Criteria) this;
        }

        public Criteria andThumbHeightLessThan(Integer value) {
            addCriterion("thumb_height <", value, "thumbHeight");
            return (Criteria) this;
        }

        public Criteria andThumbHeightLessThanOrEqualTo(Integer value) {
            addCriterion("thumb_height <=", value, "thumbHeight");
            return (Criteria) this;
        }

        public Criteria andThumbHeightIn(List<Integer> values) {
            addCriterion("thumb_height in", values, "thumbHeight");
            return (Criteria) this;
        }

        public Criteria andThumbHeightNotIn(List<Integer> values) {
            addCriterion("thumb_height not in", values, "thumbHeight");
            return (Criteria) this;
        }

        public Criteria andThumbHeightBetween(Integer value1, Integer value2) {
            addCriterion("thumb_height between", value1, value2, "thumbHeight");
            return (Criteria) this;
        }

        public Criteria andThumbHeightNotBetween(Integer value1, Integer value2) {
            addCriterion("thumb_height not between", value1, value2, "thumbHeight");
            return (Criteria) this;
        }

        public Criteria andThumbPathIsNull() {
            addCriterion("thumb_path is null");
            return (Criteria) this;
        }

        public Criteria andThumbPathIsNotNull() {
            addCriterion("thumb_path is not null");
            return (Criteria) this;
        }

        public Criteria andThumbPathEqualTo(String value) {
            addCriterion("thumb_path =", value, "thumbPath");
            return (Criteria) this;
        }

        public Criteria andThumbPathNotEqualTo(String value) {
            addCriterion("thumb_path <>", value, "thumbPath");
            return (Criteria) this;
        }

        public Criteria andThumbPathGreaterThan(String value) {
            addCriterion("thumb_path >", value, "thumbPath");
            return (Criteria) this;
        }

        public Criteria andThumbPathGreaterThanOrEqualTo(String value) {
            addCriterion("thumb_path >=", value, "thumbPath");
            return (Criteria) this;
        }

        public Criteria andThumbPathLessThan(String value) {
            addCriterion("thumb_path <", value, "thumbPath");
            return (Criteria) this;
        }

        public Criteria andThumbPathLessThanOrEqualTo(String value) {
            addCriterion("thumb_path <=", value, "thumbPath");
            return (Criteria) this;
        }

        public Criteria andThumbPathLike(String value) {
            addCriterion("thumb_path like", value, "thumbPath");
            return (Criteria) this;
        }

        public Criteria andThumbPathNotLike(String value) {
            addCriterion("thumb_path not like", value, "thumbPath");
            return (Criteria) this;
        }

        public Criteria andThumbPathIn(List<String> values) {
            addCriterion("thumb_path in", values, "thumbPath");
            return (Criteria) this;
        }

        public Criteria andThumbPathNotIn(List<String> values) {
            addCriterion("thumb_path not in", values, "thumbPath");
            return (Criteria) this;
        }

        public Criteria andThumbPathBetween(String value1, String value2) {
            addCriterion("thumb_path between", value1, value2, "thumbPath");
            return (Criteria) this;
        }

        public Criteria andThumbPathNotBetween(String value1, String value2) {
            addCriterion("thumb_path not between", value1, value2, "thumbPath");
            return (Criteria) this;
        }

        public Criteria andThumbCreateIsNull() {
            addCriterion("thumb_create is null");
            return (Criteria) this;
        }

        public Criteria andThumbCreateIsNotNull() {
            addCriterion("thumb_create is not null");
            return (Criteria) this;
        }

        public Criteria andThumbCreateEqualTo(Date value) {
            addCriterion("thumb_create =", value, "thumbCreate");
            return (Criteria) this;
        }

        public Criteria andThumbCreateNotEqualTo(Date value) {
            addCriterion("thumb_create <>", value, "thumbCreate");
            return (Criteria) this;
        }

        public Criteria andThumbCreateGreaterThan(Date value) {
            addCriterion("thumb_create >", value, "thumbCreate");
            return (Criteria) this;
        }

        public Criteria andThumbCreateGreaterThanOrEqualTo(Date value) {
            addCriterion("thumb_create >=", value, "thumbCreate");
            return (Criteria) this;
        }

        public Criteria andThumbCreateLessThan(Date value) {
            addCriterion("thumb_create <", value, "thumbCreate");
            return (Criteria) this;
        }

        public Criteria andThumbCreateLessThanOrEqualTo(Date value) {
            addCriterion("thumb_create <=", value, "thumbCreate");
            return (Criteria) this;
        }

        public Criteria andThumbCreateIn(List<Date> values) {
            addCriterion("thumb_create in", values, "thumbCreate");
            return (Criteria) this;
        }

        public Criteria andThumbCreateNotIn(List<Date> values) {
            addCriterion("thumb_create not in", values, "thumbCreate");
            return (Criteria) this;
        }

        public Criteria andThumbCreateBetween(Date value1, Date value2) {
            addCriterion("thumb_create between", value1, value2, "thumbCreate");
            return (Criteria) this;
        }

        public Criteria andThumbCreateNotBetween(Date value1, Date value2) {
            addCriterion("thumb_create not between", value1, value2, "thumbCreate");
            return (Criteria) this;
        }

        public Criteria andThumbModifyIsNull() {
            addCriterion("thumb_modify is null");
            return (Criteria) this;
        }

        public Criteria andThumbModifyIsNotNull() {
            addCriterion("thumb_modify is not null");
            return (Criteria) this;
        }

        public Criteria andThumbModifyEqualTo(Date value) {
            addCriterion("thumb_modify =", value, "thumbModify");
            return (Criteria) this;
        }

        public Criteria andThumbModifyNotEqualTo(Date value) {
            addCriterion("thumb_modify <>", value, "thumbModify");
            return (Criteria) this;
        }

        public Criteria andThumbModifyGreaterThan(Date value) {
            addCriterion("thumb_modify >", value, "thumbModify");
            return (Criteria) this;
        }

        public Criteria andThumbModifyGreaterThanOrEqualTo(Date value) {
            addCriterion("thumb_modify >=", value, "thumbModify");
            return (Criteria) this;
        }

        public Criteria andThumbModifyLessThan(Date value) {
            addCriterion("thumb_modify <", value, "thumbModify");
            return (Criteria) this;
        }

        public Criteria andThumbModifyLessThanOrEqualTo(Date value) {
            addCriterion("thumb_modify <=", value, "thumbModify");
            return (Criteria) this;
        }

        public Criteria andThumbModifyIn(List<Date> values) {
            addCriterion("thumb_modify in", values, "thumbModify");
            return (Criteria) this;
        }

        public Criteria andThumbModifyNotIn(List<Date> values) {
            addCriterion("thumb_modify not in", values, "thumbModify");
            return (Criteria) this;
        }

        public Criteria andThumbModifyBetween(Date value1, Date value2) {
            addCriterion("thumb_modify between", value1, value2, "thumbModify");
            return (Criteria) this;
        }

        public Criteria andThumbModifyNotBetween(Date value1, Date value2) {
            addCriterion("thumb_modify not between", value1, value2, "thumbModify");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}